package com;

public class Student extends Person {

    public void m1() {
        System.out.println("Student.m1()");
    }

    @Override
    public void m0() {
        System.out.println("Student.m0()");
    }

    @Override
    public int max(int... a) {
        System.out.println("student . max(int...a)");
        int t = 0;
        if (a.length > 0) {
            t = a[a.length - 1];
            for (int i = 0; i < a.length-1; i++) {
                if (t < a[i]) {
                    t = a[i];
                }
            }
        }
        return t;
    }

    public void show(){
        System.out.println(super.max(1, 2, 3));
        System.out.println(max(1, 2, 3));
        System.out.println(this.max(1, 2, 3));
        this.aa();
        aa();

    }



    public void aa(){
        System.out.println("Person.aa()");
    }
}
